import { forwardRef, Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { AuthModule } from '../auth/auth.module'
import { UserEntity } from '../user/entities/user.entity'
import { UserModule } from '../user/user.module'
import { WalletLogEntity } from './entities/points.entity'
import { WalletLogService } from './points.service'
import { WalletLogController } from './points.controller'
import { TokenService } from '../auth/token.service'

@Module({
  imports: [
    TypeOrmModule.forFeature([WalletLogEntity, UserEntity]),
    AuthModule,
    forwardRef(() => UserModule)
  ],
  controllers: [WalletLogController],
  providers: [WalletLogService, TokenService],
  exports: [WalletLogService, TokenService]
})
export class PointsModule { }
